package com.wanwu.channel.dao.inter;

import com.wanwu.channel.dao.condition.BaseCondition;
import com.wanwu.channel.dao.entity.ChannelMerchantInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChannelMerchantInfoDao {

    int insert(ChannelMerchantInfoEntity record);

    int insertSelective(ChannelMerchantInfoEntity record);

    ChannelMerchantInfoEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ChannelMerchantInfoEntity record);

    int updateByPrimaryKey(ChannelMerchantInfoEntity record);

    List<ChannelMerchantInfoEntity> selectByPayChannel(String payChannel);

    ChannelMerchantInfoEntity selectByPayChannelAndMerchantNo(@Param("payChannel")String payChannel, @Param("merchantNo")String merchantNo);

    ChannelMerchantInfoEntity selectByPayChannelAndMerchantNoAndBizCode(@Param("payChannel")String payChannel, @Param("merchantNo")String merchantNo, @Param("bizCode")String bizCode);

    int countNum(@Param("entity") ChannelMerchantInfoEntity entity, @Param("cond") BaseCondition condition);

    List<ChannelMerchantInfoEntity> qryList(@Param("entity") ChannelMerchantInfoEntity entity, @Param("cond")BaseCondition condition);

    ChannelMerchantInfoEntity selectLatestInsert();
}